package com.josework.springhelloworld.model.factory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Bond implements Product{
    private String name = "bond";

    private Integer weight;

    private Integer height;

    public Bond(Integer height,Integer weight,String name){
        this.height = height;
        this.weight = weight;
        this.name = name;

    }


    @Override
    public void printName() {
        System.out.println("name: "+this.name+" weight: "+this.weight+" height: "+this.height);
    }
}
